class UserInfo:
    def __init__(self, id, screen_name, followers_count, friends_count, 
                 statuses_count, verified, location, profile_image_url, 
                 status_total_counter, **invalid_kwargs):
        """
        数据结构描述
        id: 用户id
        screen_name: 用户昵称
        followers_count: 粉丝数
        friends_count: 关注数
        statuses_count: 微博数
        verified: 是否认证
        location: 用户所在地
        profile_image_url: 用户头像地址
        status_total_counter: {
            "total_cnt_format": 微博收到的赞/评论/转发的总数 展示格式（xx万之类的）
            "comment_cnt": 微博收到的评论数,
            "repost_cnt": 微博收到的转发数,
            "like_cnt": 微博收到的赞数,
            "total_cnt": 微博收到的赞/评论/转发的总数
        }
        invalid_kwargs: 无效参数
        """
        self.user_id = id
        self.name = screen_name
        self.followers_count = followers_count
        self.friends_count = friends_count
        self.statuses_count = statuses_count
        self.verified = verified
        self.location = location
        self.avatar_weibo_url = profile_image_url
        self.is_avatar = self.get_is_avatar(profile_image_url)
        self.status_total_counter = status_total_counter
    def get_is_avatar(self, avater_url):
        if avater_url.find('default') == -1:
            return False
        else:
            return True
        
    def json(self):
        return {
            'id': self.user_id,
            'name': self.name,
            'followers_count': self.followers_count,
            'friends_count': self.friends_count,
            'statuses_count': self.statuses_count,
            'verified': self.verified,
            'location': self.location,
            'avatar_weibo_url': self.avatar_weibo_url,
            'is_avatar': self.is_avatar,
            'status_total_counter': self.status_total_counter
        }